package com.ruoyi.merchantTransaction.service.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.merchantTransaction.domain.MerchantTransactionWithdrawal;
import com.ruoyi.merchantTransaction.mapper.MerchantTransactionWithdrawalMapper;
import com.ruoyi.merchantTransaction.service.IMerchantTransactionWithdrawalService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 *  服务层实现
 * 
 * @author ruoyi
 * @date 2019-05-07
 */
@Service
public class MerchantTransactionWithdrawalServiceImpl implements IMerchantTransactionWithdrawalService
{
	@Autowired
	private MerchantTransactionWithdrawalMapper transactionWithdrawalMapper;

	/**
     * 查询信息
     * 
     * @param id ID
     * @return 信息
     */
    @Override
	public MerchantTransactionWithdrawal selectTransactionWithdrawalById(Long id)
	{
	    return transactionWithdrawalMapper.selectTransactionWithdrawalById(id);
	}
	
	/**
     * 查询列表
     * 
     * @param transactionWithdrawal 信息
     * @return 集合
     */
	@Override
	public List<MerchantTransactionWithdrawal> selectTransactionWithdrawalList(MerchantTransactionWithdrawal transactionWithdrawal)
	{
	    return transactionWithdrawalMapper.selectTransactionWithdrawalList(transactionWithdrawal);
	}
	
    /**
     * 新增
     * 
     * @param transactionWithdrawal 信息
     * @return 结果
     */
	@Override
	public int insertTransactionWithdrawal(MerchantTransactionWithdrawal transactionWithdrawal)
	{
	    return transactionWithdrawalMapper.insertTransactionWithdrawal(transactionWithdrawal);
	}
	
	/**
     * 修改
     * 
     * @param transactionWithdrawal 信息
     * @return 结果
     */
	@Override
	public int updateTransactionWithdrawal(MerchantTransactionWithdrawal transactionWithdrawal)
	{
	    return transactionWithdrawalMapper.updateTransactionWithdrawal(transactionWithdrawal);
	}

	/**
     * 删除对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
	@Override
	public int deleteTransactionWithdrawalByIds(String ids)
	{
		return transactionWithdrawalMapper.deleteTransactionWithdrawalByIds(Convert.toStrArray(ids));
	}
	
}
